package com.zsc.shixun.model.notice;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 公告创建VO
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/17
 */
@Data
public class NoticeCreateVO {

    @ApiModelProperty(value = "公告内容")
    @NotNull(message = "必须填公告内容")
    @NotBlank(message = "公告内容不能为空")
    private String content;

    @ApiModelProperty(value = "公告标题")
    @NotNull(message = "必须填公告标题")
    @NotBlank(message = "公告标题不能为空")

    private String title;

    @NotNull(message = "必须填发表者")
    @ApiModelProperty(value = "发布者")
    @NotBlank(message = "发表者不能为空")
    private String name;

}
